package com.sun.services.roles.service;


import com.sun.commons.base.R;
import com.sun.dto.users.RoleSearchModel;
import com.sun.dto.users.UserRoleDto;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * MP自动填充Handler
 *
 * @Author whsunchunbo@qq.com
 * @CreateTime 2025/9/9 06:03
 */
public interface UserRoleService {
    void deleteByUserId(Long userId);

    void saveUserRole(UserRoleDto userRole);

    R findByUserId(Long userId);

    List<UserRoleDto> getList(RoleSearchModel model);
    Page<UserRoleDto> getPage(RoleSearchModel model);

}
